home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / cbibcode.arc / PUTC.C < prev    next >
Encoding:
C/C++ Source or Header  |  1991-08-05  |  307 b   |  10 lines

  1. /*  putc.c, from p.453 of Turbo C Bible  */
  2. #include <stdio.h>
  3. char buffer[81] = "Testing putc on stdout...\n";
  4. main()
  5. {
  6.     int i;
  7.                 /*  An empty for loop that uses putc to  */
  8.                 /*  print to stdout                      */
  9.     for (i = 0; (i < 81) && (putc(buffer[i], stdout) != EOF); i++);
  10. }